package com.tvunetworks.center.device.service;



import com.tvunetworks.center.device.model.router.Peer;

import java.util.List;

/**
 * @author Etan Yang
 * @create: 2021/10/13 15:27
 */
public interface RouterService {
     /**
      *
      * @param userId userId
      * @return findRoutlistfromTPC
      * @throws Exception 编译异常
      */
     List<Peer> findRoutlistfromTPC(String  userId) throws Exception;

     /**
      *
      * @throws Exception 编译异常
      */
      void getStatusXmlTask() throws Exception;

     /**
      *
      * @param peerId peerId
      * @return String
      * @throws Exception 编译异常
      */
      String findSlotsCheckStatus(String peerId) throws Exception;

     /**
      *
      * @param userid userid
      * @return String
      */
      String getRouterSelectRecord(String userid);

     /**
      *
      * @param peerId peerId
      * @param slotId slotId
      * @param cmd cmd
      * @param timestamp timestamp
      * @throws Exception 编译异常
      */
      void sendMsgPipe(String peerId,String slotId,String cmd,Long timestamp) throws Exception;

     /**
      *
      * @param tid tid
      * @return  String
      * @throws Exception 编译异常
      */
      String querySlotStatus(String tid) throws Exception;

     /**
      *
      * @param peerId peerId
      * @throws Exception 编译异常
      */
      void sendMsgPipeToQuerySlotStatus(String peerId) throws Exception;

     /**
      *
      * @param type type
      * @param module module
      * @param tid tid
      * @return  String
      * @throws Exception 编译异常
      */
      String  findSlotsMsg(String type,String module,String tid) throws Exception;

     /**
      *
      * @param type type
      * @param module  module
      * @param tid tid
      * @param userid userid
      * @return String
      * @throws Exception 编译异常
      */
      String findPeerMsg(String type,String module,String tid,String userid) throws Exception;

     /**
      *
      * @param type type
      * @param module module
      * @param tid tid
      * @param userid userid
      * @return String
      * @throws Exception 编译异常
      */
      String routerStatus(String type,String module,String tid,String userid) throws Exception;

     /**
      *
      * @param slotsmsg slotsmsg
      */
      void saveSlotsStatusToRedis(String slotsmsg);
}
